package jsyf.oa.entity.device;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 92852 on 2018/4/8.
 */
@Entity
@Table(name = "T_DVC_ACCESSORIES_SALES", schema = "oa", catalog = "")
public class AccSalesEntity extends BaseEntity {
    private String workOrderNum;
    private String buyDate;
    private String buyMoney;
    private String arrearsMoney;
    private String settleMoney;
    private String settleDate;
    private String erpOutboundNum;

    public String getWorkOrderNum() {
        return workOrderNum;
    }

    public void setWorkOrderNum(String workOrderNum) {
        this.workOrderNum = workOrderNum;
    }

    public String getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(String buyDate) {
        this.buyDate = buyDate;
    }

    public String getBuyMoney() {
        return buyMoney;
    }

    public void setBuyMoney(String buyMoney) {
        this.buyMoney = buyMoney;
    }

    public String getArrearsMoney() {
        return arrearsMoney;
    }

    public void setArrearsMoney(String arrearsMoney) {
        this.arrearsMoney = arrearsMoney;
    }

    public String getSettleMoney() {
        return settleMoney;
    }

    public void setSettleMoney(String settleMoney) {
        this.settleMoney = settleMoney;
    }

    public String getSettleDate() {
        return settleDate;
    }

    public void setSettleDate(String settleDate) {
        this.settleDate = settleDate;
    }

    public String getErpOutboundNum() {
        return erpOutboundNum;
    }

    public void setErpOutboundNum(String erpOutboundNum) {
        this.erpOutboundNum = erpOutboundNum;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("WORK_ORDER_NUM", this.getWorkOrderNum());
        obj.put("BUY_DATE", this.getBuyDate());
        obj.put("BUY_MONEY", this.getBuyMoney());
        obj.put("ARREARS_MONEY", this.getArrearsMoney());
        obj.put("SETTLE_MONEY", this.getSettleMoney());
        obj.put("SETTLE_DATE", this.getSettleDate());
        obj.put("ERP_OUTBOUND_NUM", this.getErpOutboundNum());
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_DVC_ACCESSORIES_SALES";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("ID", "workOrderNum");
        obj.put("ID", "buyDate");
        obj.put("ID", "buyMoney");
        obj.put("ID", "arrearsMoney");
        obj.put("ID", "settleMoney");
        obj.put("ID", "settleDate");
        obj.put("ID", "erpOutboundNum");

        return obj;
    }
}
